package com.ltmall.api.manager.impl;

import com.ltmall.api.bean.Goods;
import com.ltmall.api.bean.HotCity;
import com.ltmall.api.dao.impl.SearchDAO;
import com.ltmall.api.manager.SearchManager;
import com.ltmall.api.util.PageUtil;

import java.util.List;

public class SearchManagerImpl implements SearchManager {
	private SearchDAO sDAO;

	public SearchDAO getsDAO() {
		return sDAO;
	}

	public void setsDAO(SearchDAO sDAO) {
		this.sDAO = sDAO;
	}

	public List<HotCity> searchCity(String keyword) {
		// TODO Auto-generated method stub
		return sDAO.searchCity(keyword);
	}

	public List<?> cityList() {
		// TODO Auto-generated method stub
		return sDAO.cityList();
	}

	public List<Goods> searchGoos(String keyword, PageUtil page) {
		List<Goods> goodsList = sDAO.searchGoods(keyword, page);
		return goodsList;
	}

	public List<String> countyList() {
		// TODO Auto-generated method stub
		return  sDAO.allCounty();
	}

	public List<String> cityListWithoutCounty() {
		// TODO Auto-generated method stub
		return sDAO.allCityWithoutCounty();
	}
	 
}
